package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 策略表
 * @TableName tb_policy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="tb_policy")
public class Policy implements Serializable {
    /**
     * 策略id
     */
    @TableId(type = IdType.AUTO)
    private Integer policyId;

    /**
     * 策略名称
     */
    private String policyName;

    /**
     * 折扣，如：80代表8折
     */
    private Integer discount;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}